package com.example.user.service;

import com.example.common.dto.UserDto;
import com.example.shared.entity.EmailVerification;
import com.example.shared.entity.User;
import com.example.user.payload.EmailRegistrationPayload;

public interface UserService {
    UserDto findUserByName(String name);
    User registerWithEmail(EmailRegistrationPayload payload);
    EmailVerification createVerification(User user, String token);
    EmailVerification getVerificationFromToken(String token);

    void saveRegisteredUser(User user);
}
